package com.my.all.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = "/goodsPage")
public class GoodsPageController {
    @GetMapping("/index")
    public String index(){
        return "/goods/html/index";
    }

    @GetMapping("/selectAllGoods")
    public String selectAllGoods(){
        return "/goods/html/selectAllGoods";
    }

    @GetMapping("/selectGoodsById")
    public String selectGoodsById(){
        return "/goods/html/selectGoodsById";
    }

    @GetMapping("/insertGoods")
    public String insertGoods(){
        return "/goods/html/insertGoods";
    }

    @GetMapping("/deleteGoods")
    public String deleteGoods(){
        return "/goods/html/deleteGoods";
    }

    @GetMapping("/updateGoods")
    public String updateGoods(){
        return "/goods/html/updateGoods";
    }
}
